<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateMuticolumnsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('muticolumns', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('sp_id')->default(0)->unsigned()->comment('Sp服务商');
            $table->integer('column_type_id')->default(0)->unsigned()->comment('栏目类型');
            $table->integer('level')->default(0)->unsigned()->comment('栏目级别');
            $table->string('name', 100)->comment('名称');
            $table->string('title')->nullable()->comment('标题');
            $table->string('subtitle')->nullable()->comment('副标题');
            $table->integer('paneltpl_id')->default(0)->unsigned()->comment('panel模板');
            $table->integer('term_type_id')->default(0)->unsigned()->comment('设备类型');
            $table->string('description')->nullable()->comment('描述');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('muticolumns');
    }
}
